<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>动画</title>
    <meta name="viewport" content="width=device-width,initial-scale=1.0, user-scalable=no, maximum-scale=1.0, minimum-scale=1.0">
    <link rel="stylesheet" href="css/swiper.min.css">
    <link rel="stylesheet" href="css/animate.min.css">
    <style>
        body,html{
            height: 100%;
        }
        .swiper-container{
            width: 100%;
            height: 100%;
        }
        .s1{
            background: rgba(255, 55, 201, 0.62);
        }
        .s2{
            background: rgba(201, 255, 133, 0.62);
        }
        .s3{
            background: rgba(95, 255, 184, 0.62);
        }
        .s4{
            background: rgba(213, 255, 95, 0.62);
        }
    </style>
</head>
<body>
<div class="swiper-container">
    <div class="swiper-wrapper">
    <div class="swiper-slide s1">
        <p class="ani" swiper-animate-effect="fadeInUp" swiper-animate-duration="0.5s" swiper-animate-delay="0.3s">123</p>
        <p class="ani" swiper-animate-effect="rollOut" swiper-animate-duration="0.5s" swiper-animate-delay="0.3s">da</p>
    </div>
    <div class="swiper-slide s2">
        <p class="ani" swiper-animate-effect="zoomOutUp" swiper-animate-duration="0.5s" swiper-animate-delay="0.3s">内容</p>
        <p class="ani" swiper-animate-effect="bounce" swiper-animate-duration="0.5s" swiper-animate-delay="0.3s">内容</p>
        <p class="ani" swiper-animate-effect="fadeInUp" swiper-animate-duration="0.5s" swiper-animate-delay="0.3s">内容</p>
    </div>
    <div class="swiper-slide s3">
        <p class="ani" swiper-animate-effect="fadeInUp" swiper-animate-duration="0.5s" swiper-animate-delay="0.3s">内容</p>
    </div>
    <div class="swiper-slide s4">
        <p class="ani" swiper-animate-effect="fadeInUp" swiper-animate-duration="0.5s" swiper-animate-delay="0.3s">内容</p>
    </div>
</div>
    <p class="ani" swiper-animate-effect="rollIn" swiper-animate-duration="0.5s" swiper-animate-delay="0.3s">啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊</p>

</div>
<script src="js/swiper.min.js"></script>
<script src="js/swiper.animate.min.js"></script>
<script>
    var mySwiper = new Swiper ('.swiper-container', {
        on:{
            init: function(){
                swiperAnimateCache(this); //隐藏动画元素
                swiperAnimate(this); //初始化完成开始动画
            },
            slideChangeTransitionEnd: function(){
                swiperAnimate(this); //每个slide切换结束时也运行当前slide动画
            }
        }
    })

</script>
</body>
</html>